package btp.SuryaSiddhanta.Planets;

public class Circle {
	long revolutions;
	int signs;
	int degrees;
	int minutes;
	double seconds;
	
	public Circle(long revolutions, int signs, int degrees, int minutes, double second){
		this.revolutions = revolutions;
		this.signs = signs;
		this.degrees = degrees;
		this.minutes = minutes;
		this.seconds = second;
	}
	
	
	public final long getRevolutions() {
		return revolutions;
	}


	public final void setRevolutions(long revolutions) {
		this.revolutions = revolutions;
	}


	public final int getSigns() {
		return signs;
	}


	public final void setSigns(int signs) {
		this.signs = signs;
	}


	public final int getDegrees() {
		return degrees;
	}


	public final void setDegrees(int degrees) {
		this.degrees = degrees;
	}


	public final int getMinutes() {
		return minutes;
	}


	public final void setMinutes(int minutes) {
		this.minutes = minutes;
	}


	public final double getSeconds() {
		return seconds;
	}


	public final void setSeconds(double seconds) {
		this.seconds = seconds;
	}


	public static Circle getDivisionsOfCircle(double d){
		long revolutions = (long) d;
		d= 12*(d-revolutions);
		int signs = (int) d;
		d=30*(d-signs);
		int degrees = (int) d;
		d=60*(d-degrees);
		int minutes = (int) d;
		d=60*(d-minutes);
		return new Circle(revolutions, signs, degrees, minutes, d);
	}
}
